<?php
/**
 * House table class
 * 
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_4
 * @license		GNU/GPL
 */

// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

/**
 * House Table class
 *
 * @package    Congregation
 * @subpackage Components
 */
class TablePaths extends JTable
{
	/**
	 * Primary Key
	 *
	 * @var int
	 */
	var $t_id = null;
	var $t_date = null;
	var $t_cid = null;
	var $t_charge = null;
	var $t_current = null;
	var $t_username = null;
	
/**
	 * Constructor
	 *
	 * @param object Database connector object
	 */
	function TablePaths(& $db) {
		parent::__construct('#__congregation_profile_paths', 't_id', $db);
	}
	
	function check() {
		if (trim($this->t_cid) == '') {
	      $this->setError(JText::_('Please select a community'));
	      return false;
	    }
		return true;
	}	
}